<?php /* Smarty version 2.6.19, created on 2008-07-03 15:51:51
         compiled from user/registration.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'user/registration.tpl', 1, false),array('function', 'html_select_date', 'user/registration.tpl', 29, false),array('modifier', 'escape', 'user/registration.tpl', 15, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Registration">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        
        <?php if ($this->_tpl_vars['registration']): ?>
		    Поздравляем! Вы успешно зарегистрировались! Вы можете загрузить фотографию прямо <a href="/user/upload/">сейчас</a>. Либо сделать это позже из своего <a href="/">аккаунта</a>.
		<?php else: ?>
	        <b><?php echo $this->_tpl_vars['error']['empty']; ?>
</b><br />
	        Username:<sup>*</sup><b><?php echo $this->_tpl_vars['error']['username']; ?>
</b><br />
	        <input type="text" name="username" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['username'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        Password:<sup>*</sup><b><?php echo $this->_tpl_vars['error']['password']; ?>
</b><br />
	        <input type="password" name="password" value="" /><br />
	        Password again:<sup>*</sup><br />
	        <input type="password" name="password_again" value="" /><br />
	        E-mail:<sup>*</sup><b><?php echo $this->_tpl_vars['error']['mail']; ?>
</b><br />
	        <input type="text" name="mail" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['mail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        Gender:<sup>*</sup><br />
            <select name="sex">
                <option value="">Your gender</option>
                <option value="male"<?php if ($this->_tpl_vars['form']['sex'] == 'male'): ?> selected<?php endif; ?>>Male</option>
                <option value="female"<?php if ($this->_tpl_vars['form']['sex'] == 'female'): ?> selected<?php endif; ?>>Female</option>
            </select><br />
	        Age:<sup>*</sup><b><?php echo $this->_tpl_vars['error']['born']; ?>
</b><br />
	        <?php echo smarty_function_html_select_date(array('selected_month' => ($this->_tpl_vars['month']),'selected_year' => ($this->_tpl_vars['year']),'selected_day' => ($this->_tpl_vars['day']),'start_year' => "-60",'end_year' => "-8"), $this);?>
<br />
	        Phone number:<sup>*</sup><b><?php echo $this->_tpl_vars['error']['number']; ?>
</b><br />
	        <input type="text" name="number" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        Country/region:<sup>*</sup><br />
	        <input type="text" name="country" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        City/other country:<sup>*</sup><br />
	        <input type="text" name="city" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        About yourself:<br />
	        <input type="text" name="description" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	        
	        <anchor>Send
            <go href="/<?php echo $this->_tpl_vars['sys_path']; ?>
/" method="post">
                <postfield name="form[username]" value="$(username)"/>
                <postfield name="form[password]" value="$(password)"/>
                <postfield name="form[password_again]" value="$(password_again)"/>
                <postfield name="form[mail]" value="$(mail)"/>
                <postfield name="form[sex]" value="$(sex)"/>
                <postfield name="Date_Month" value="$(Date_Month)"/>
                <postfield name="Date_Day" value="$(Date_Day)"/>
                <postfield name="Date_Year" value="$(Date_Year)"/>
                <postfield name="form[number]" value="$(number)"/>
                <postfield name="form[country]" value="$(country)"/>
                <postfield name="form[city]" value="$(citylogin)"/>
                <postfield name="form[description]" value="$(description)"/>
            </go>
        </anchor><br /><br />
	    <?php endif; ?>
    </card>
</wml>